<?php

include_once ("includes/init.php");
$title = $defaultPageTitle . " Hall of Fame";
include_once ("includes/header.php");
echo<<< EOQ
	<caption><h1>$defaultPageTitle Hall of Fame</h1></caption>
	<tr><td colspan="2"><table border="0" cellpadding="4" cellspacing="0">
	<tr>
		<th>Season</th>
		<th>Winner</th>
		<th>Runner Up</th>
		<th>Comments</th>
	</tr>
EOQ;

$rowCount = 0;
foreach ($seasons as $currentSeason) {
	echo getEchoTR(++ $rowCount);
	echo<<< EOQ
		<td><a href="league.php?season_id=$currentSeason->id">$currentSeason->season</a></td>
EOQ;
	echo "<td>" . $currentSeason->getWinnerLink($teams). "</td>";
	echo "<td>" . $currentSeason->getRunnerUpLink($teams). "</td>";
	echo<<< EOQ
		<td>$currentSeason->comments</td>
	</tr>
EOQ;
}
echo<<< EOQ
	</table></td></tr>
EOQ;
include ("includes/footer.php");
?>